﻿#ifndef DESKTOPSERVER_H
#define DESKTOPSERVER_H

#include <QObject>
#include "maindesktop.h"

class desktopServer : public QObject
{
    Q_OBJECT
public:
    explicit desktopServer(QObject *parent = nullptr);
    MainDesktop *MainDesktopItiem;   //主页

    void desktopServerInit();       //线程类初始化
    void CreateConnect();           //创建信号与槽连接


signals:
    //发布AGV任务
    void sigAGVMoveTask(QString AGVIP, quint32 StartQRPoint, quint32 EndQRPoint, int AGVAction,int tye,agvORderTask agvORderTaskI);

    //创建 AGV 搬运任务
    void newAGVMoveTask(QString AGVIP,QString taskType,AGVCurrentTask AGVCurrentTaskI);

    //显示AGV 详细状态信息
    void AgvStateWidget(agvState agvStateItem1);


    //删除业务任务
    void sig_deleteSAPExcelInfoTask(QMap<int, SAPExcelInfo>seletSAPExcelInfoTask);

    //更改业务任务状态
    void sig_UPSAPExcelInfoTask(QMap<int, SAPExcelInfo>seletSAPExcelInfoTask,ESS_Request ESS_RequestI,QString taskType);      //更新SAP 任务状态

    void sig_AGVCurrentTaskAction(QString AGVIP,QString Type, QString Action);

    //主界面翻译信号
    void sig_Translate();

public slots:
};

#endif // DESKTOPSERVER_H
